﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="LikePhones.aspx.vb" Inherits="APhones2.LikePhones" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" Width="131px">
            <Columns>
                <asp:BoundField DataField="PhoneName" HeaderText="PhoneName" 
                    SortExpression="PhoneName" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:Phones %>" 
            ProviderName="<%$ ConnectionStrings:Phones.ProviderName %>" 
            SelectCommand="SELECT [ID], [PhoneName] FROM [Phones] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:Button ID="bt_Like" runat="server" Text="I Like This" />
        <asp:Image ID="img_Smiley" runat="server" Height="20px" 
            ImageUrl="~/Images/smiley.jpg" Width="20px" />
    </p>
    <p>
        <asp:Label ID="lb_Likes" runat="server"></asp:Label>
    </p>
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Back</asp:HyperLink>
    </p>
</asp:Content>
